import React from 'react'
import store from '../../redux/store'

export default function Index() {
  const countTotal = () => store.getState().todo.list.filter(item => item.done).length;
  return (
    <div className='total'> 已完成({countTotal()})/全部({store.getState().todo.list.length})</div>
  )
}
